-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revisions to Inet::IPAddress #10791
Merged
andy31415
merged 2 commits into
project-chip:master
from
kpschoedel:x7715-inet-3d-ipaddress
Oct 22, 2021
Merged
Revisions to Inet::IPAddress #10791
andy31415
merged 2 commits into
project-chip:master
from
kpschoedel:x7715-inet-3d-ipaddress
Oct 22, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Problem `Inet::IPAddress` has some redundancies and outdated comments. #### Change overview - Convert `IPAddress::From…()` functions that are semantically constructors into constructors. - Replace several identical `union`s with `IPAddress::SockAddr`. - Fix outdated documentation regarding IPv4-in-IPv6. - Fix a use of `IPAddress::kMaxStringLength` (from project-chip#10450 review). #### Testing CI; no changes to functionality intended.
Split off from PR #10450 |
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
balducci-apple,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chulspro,
Damian-Nordic,
emargolis,
erjiaqing,
franck-apple,
harimau-qirex,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
LuDuda,
mlepage-google,
msandstedt and
pan-apple
October 21, 2021 19:03
pullapprove
bot
requested review from
robszewczyk,
sagar-apple,
saurabhst,
tcarmelveilleux,
vivien-apple,
wbschiller and
woody-apple
October 21, 2021 19:03
PR #10791: Size comparison from 1b9ac5f to 4410644 8 builds (for k32w, p6, qpg, telink)
14 builds (for efr32, linux, mbed)
12 builds (for esp32, nrfconnect)
|
Size increase report for "gn_qpg-example-build" from 1b9ac5f
Full report output
|
andy31415
approved these changes
Oct 21, 2021
Candidate for fast track (code refactor), however I would like one more reviewer beside myself since the changes are reasonably large. |
andy31415
reviewed
Oct 21, 2021
andy31415
reviewed
Oct 21, 2021
msandstedt
reviewed
Oct 21, 2021
andy31415
reviewed
Oct 21, 2021
msandstedt
reviewed
Oct 21, 2021
Size increase report for "esp32-example-build" from 1b9ac5f
Full report output
|
PR #10791: Size comparison from 1b9ac5f to b60c337 22 builds (for efr32, k32w, linux, mbed, p6, qpg, telink)
12 builds (for esp32, nrfconnect)
|
msandstedt
approved these changes
Oct 21, 2021
kpschoedel
added a commit
to kpschoedel/connectedhomeip
that referenced
this pull request
Oct 22, 2021
#### Problem When LwIP is configured for IPv6 only, its type `ip_addr_t` is identical to `ip6_addr_t`; otherwise they are different. PR project-chip#10791 made the incorrect assumption that we would never build CHIP without IPv4 when then platform LwIP is configured with IPv4, and left out the constructor overload necessary for that case. #### Change overview Enable the `ip_addr_t` constructor if `LWIP_IPV4` is true. #### Testing Built ``` scripts/build/build_examples.py \ --target esp32-m5stack-all-clusters-ipv6only build` ```
woody-apple
pushed a commit
that referenced
this pull request
Oct 23, 2021
#### Problem When LwIP is configured for IPv6 only, its type `ip_addr_t` is identical to `ip6_addr_t`; otherwise they are different. PR #10791 made the incorrect assumption that we would never build CHIP without IPv4 when then platform LwIP is configured with IPv4, and left out the constructor overload necessary for that case. #### Change overview Enable the `ip_addr_t` constructor if `LWIP_IPV4` is true. #### Testing Built ``` scripts/build/build_examples.py \ --target esp32-m5stack-all-clusters-ipv6only build` ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Inet::IPAddress
has some redundancies and outdated comments.Change overview
IPAddress::From…()
functions that are semanticallyconstructors into constructors.
union
s withIPAddress::SockAddr
.IPAddress::kMaxStringLength
(from PR# 10450 review).Testing
CI; no changes to functionality intended.